package gov.nhso.prov.acc.servlets;


import gov.nhso.prov.acc.apps.acc6.ACC60101;
import gov.nhso.prov.acc.apps.acc6.ACC60102;
import gov.nhso.prov.acc.apps.acc6.ACC60103;
import gov.nhso.prov.acc.apps.acc6.ACC60104;
import gov.nhso.prov.acc.apps.acc6.ACC60105;
import gov.nhso.prov.acc.apps.acc6.ACC60106;
import gov.nhso.prov.acc.apps.acc6.ACC60107;
import gov.nhso.prov.acc.apps.acc6.ACC60108;
import gov.nhso.prov.acc.apps.acc6.ACC60109;
import gov.nhso.prov.acc.apps.acc6.ACC60110;
import gov.nhso.prov.acc.apps.acc6.ACC60111;
import gov.nhso.prov.acc.apps.acc6.ACC60201;
import gov.nhso.prov.acc.apps.acc6.ACC60202;
import gov.nhso.prov.acc.apps.acc6.ACC60203;
import gov.nhso.prov.acc.apps.acc6.ACC60204;
import gov.nhso.prov.acc.apps.acc6.ACC60205;
import gov.nhso.prov.acc.apps.acc6.ACC60301;
import gov.nhso.prov.acc.apps.acc6.ACC60302;
import gov.nhso.prov.acc.apps.acc6.ACC60303;
import gov.nhso.prov.acc.apps.acc6.ACC60304;
import gov.nhso.prov.acc.apps.acc6.ACC60305;
import gov.nhso.prov.acc.apps.acc6.ACC60306;
import gov.nhso.prov.acc.apps.acc6.ACC60307;
import gov.nhso.prov.acc.apps.acc6.ACC60308;
import gov.nhso.prov.acc.apps.acc6.ACC60309;
import gov.nhso.prov.acc.apps.acc6.ACC60310;
import gov.nhso.prov.acc.apps.acc6.ACC60311;
import gov.nhso.prov.acc.apps.acc6.ACC60312;
import gov.nhso.prov.acc.apps.acc6.ACC60401;
import gov.nhso.prov.acc.apps.acc6.ACC60402;
import gov.nhso.prov.acc.apps.acc6.ACC60403;
import gov.nhso.prov.acc.apps.acc6.ACC60404;
import gov.nhso.prov.acc.apps.acc6.ACC60501;
import gov.nhso.prov.acc.apps.acc6.ACC60502;
import gov.nhso.prov.acc.apps.acc6report.ACC6REPORT;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Servlet implementation class ACC6Servlet
 */
public class ACC6Servlet extends ServletDispatcher {
	private static final long serialVersionUID = 1L;
       
	public void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String url = "/index.jsp";
		try {
			this.setAllRequest(request);
			String app = (String) request.getAttribute("app");
			if (app.equals("ACC60101")) {
				ACC60101 acc60101 = new ACC60101(request, response);
				url = acc60101.url;
				acc60101 = null;
			}else if(app.equals("ACC60102")){
				ACC60102 acc60102 = new ACC60102(request, response);
				url = acc60102.url;
				acc60102 = null;
			}else if(app.equals("ACC60103")){
				ACC60103 acc60103 = new ACC60103(request, response);
				url = acc60103.url;
				acc60103 = null;
			}else if(app.equals("ACC60104")){
				ACC60104 acc60104 = new ACC60104(request, response);
				url = acc60104.url;
				acc60104 = null;
			}else if(app.equals("ACC60105")){
				ACC60105 acc60105 = new ACC60105(request, response);
				url = acc60105.url;
				acc60105 = null;
			}else if(app.equals("ACC60106")){
				ACC60106 acc60106 = new ACC60106(request, response);
				url = acc60106.url;
				acc60106 = null;
			}else if(app.equals("ACC60107")){
				ACC60107 acc60107 = new ACC60107(request, response);
				url = acc60107.url;
				acc60107 = null;
			}else if(app.equals("ACC60108")){
				ACC60108 acc60108 = new ACC60108(request, response);
				url = acc60108.url;
				acc60108 = null;
			}else if(app.equals("ACC60109")){
				ACC60109 acc60109 = new ACC60109(request, response);
				url = acc60109.url;
				acc60109 = null;
			}else if(app.equals("ACC60110")){
				ACC60110 acc60110 = new ACC60110(request, response);
				url = acc60110.url;
				acc60110 = null;
			}else if(app.equals("ACC60111")){
				ACC60111 acc60111 = new ACC60111(request, response);
				url = acc60111.url;
				acc60111 = null;
			}else if(app.equals("ACC60201")){
				ACC60201 acc60201 = new ACC60201(request, response);
				url = acc60201.url;
				acc60201 = null;
			}else if(app.equals("ACC60202")){
				ACC60202 acc60202 = new ACC60202(request, response);
				url = acc60202.url;
				acc60202 = null;
			}else if(app.equals("ACC60203")){
				ACC60203 acc60203 = new ACC60203(request, response);
				url = acc60203.url;
				acc60203 = null;
			}else if(app.equals("ACC60204")){
				ACC60204 acc60204 = new ACC60204(request, response);
				url = acc60204.url;
				acc60204 = null;
			}else if(app.equals("ACC60205")){
				ACC60205 acc60205 = new ACC60205(request, response);
				url = acc60205.url;
				acc60205 = null;
			}else if(app.equals("ACC60301")){
				ACC60301 acc60301 = new ACC60301(request, response);
				url = acc60301.url;
				acc60301 = null;
			}else if(app.equals("ACC60302")){
				ACC60302 acc60302 = new ACC60302(request, response);
				url = acc60302.url;
				acc60302 = null;
			}else if(app.equals("ACC60303")){
				ACC60303 acc60303 = new ACC60303(request, response);
				url = acc60303.url;
				acc60303 = null;
			}else if(app.equals("ACC60304")){
				ACC60304 acc60304 = new ACC60304(request, response);
				url = acc60304.url;
				acc60304 = null;
			}else if(app.equals("ACC60305")){
				ACC60305 acc60305 = new ACC60305(request, response);
				url = acc60305.url;
				acc60305 = null;
			}else if(app.equals("ACC60306")){
				ACC60306 acc60306 = new ACC60306(request, response);
				url = acc60306.url;
				acc60306 = null;
			}else if(app.equals("ACC60307")){
				ACC60307 acc60307 = new ACC60307(request, response);
				url = acc60307.url;
				acc60307 = null;
			}else if(app.equals("ACC60308")){
				ACC60308 acc60308 = new ACC60308(request, response);
				url = acc60308.url;
				acc60308 = null;
			}else if(app.equals("ACC60309")){
				ACC60309 acc60309 = new ACC60309(request, response);
				url = acc60309.url;
				acc60309 = null;
			}else if(app.equals("ACC60310")){
				ACC60310 acc60310 = new ACC60310(request, response);
				url = acc60310.url;
				acc60310 = null;
			}else if(app.equals("ACC60311")){
				ACC60311 acc60311 = new ACC60311(request, response);
				url = acc60311.url;
				acc60311 = null;
			}else if(app.equals("ACC60312")){
				ACC60312 acc60312 = new ACC60312(request, response);
				url = acc60312.url;
				acc60312 = null;
			}else if(app.equals("ACC60401")){
				ACC60401 acc60401 = new ACC60401(request, response);
				url = acc60401.url;
				acc60401 = null;
			}else if(app.equals("ACC60402")){
				ACC60402 acc60402 = new ACC60402(request, response);
				url = acc60402.url;
				acc60402 = null;
			}else if(app.equals("ACC60403")){
				ACC60403 acc60403 = new ACC60403(request, response);
				url = acc60403.url;
				acc60403 = null;
			}else if(app.equals("ACC60404")){
				ACC60404 acc60404 = new ACC60404(request, response);
				url = acc60404.url;
				acc60404 = null;
			}else if(app.equals("ACC6REPORT")){
				ACC6REPORT acc6Report = new ACC6REPORT(request, response);
				url = acc6Report.url;
				acc6Report = null;
			}else if(app.equals("ACC60501")){
				ACC60501 acc60501 = new ACC60501(request, response);
				url = acc60501.url;
				acc60501 = null;
			}else if(app.equals("ACC60502")){
				ACC60502 acc60502 = new ACC60502(request, response);
				url = acc60502.url;
				acc60502 = null;
			}
		
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (!url.equals("") && url != null) {
				this.dispatcherForward(request, response, url);
			}
		}
	}

}
